<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv=Content-Type content="text/html;charset=utf-8">
<link href="smarty2.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="../js/jquery1.3.2.js"></script>
<script type="text/javascript" src="smarty2.js"></script>
<title>选择奶茶</title>
</head>
<body>
<div>
<h3>当前账户：{$username}</h3><a href="logout.php">注销</a></div>
<br/>
<h1>奶茶种类</h1>
<table id="Table" border="1" align="center" cellpadding="10" cellspacing="2" bordercolor="#ffaaoo">
<caption style="font-size:15px">当前可选奶茶数：<label id="tableRowCount">{$db_count}</label>       </caption>
{foreach $db_coltitle as $col}
    <th>{$col}</th>
{/foreach}
<th>操作</th>
{foreach $db_rows as $dbrow}
    <tr>
        <td>{$dbrow["id"]}</td>
		<td>{$dbrow["name"]}</td>
		<td>{$dbrow["size_mode"]}</td>
		<td>{$dbrow["price"]}</td>
	<td>
		<input type="button" value="选择" onclick='selectTea("{$username}",{$dbrow["id"]},{$bg_id},"{$dbrow["name"]}")' />
	</td> 
    </tr>
{/foreach}
</table>


<br />
<br />

<h1> 选择奶茶详情：</h1>
<table id="select_info" border="1" align="center" cellpadding="10" cellspacing="2" bordercolor="#ffaaoo">
<caption style="font-size:15px">选择人数：<label id="tableRowCount">{$select_count}</label>       </caption>
{foreach $select_coltitle as $col}
    <th>{$col}</th>
{/foreach}
{foreach $select_rows as $dbrow}
    <tr>
        <td>{$dbrow["id"]}</td>
		<td>{$dbrow["people_name"]}</td>
		<td>{$dbrow["tea_name"]}</td>
	 
    </tr>
{/foreach}
</table>
<div id="error"></div>
</body>
</html>